p, 
ul {
  border: 2px solid rebeccapurple;
  padding: .5em;
}

.block,
li {
  border: 2px solid blue;

  padding: .5em;
}
li {
  display: inline;
  margin: 0px;
}


ul {
  /* display: flex; */
  list-style: none;
}

.block {
  display: block;
}      
    